<%@ page language="java" import="java.util.*,cn.ac.cintcm.dataconverge.util.Constants,com.hs.core.utils.*" pageEncoding="UTF-8"%>
<%@ page import ="cn.ac.cintcm.dataconverge.researchsubject.domain.*,cn.ac.cintcm.dataconverge.util.*,cn.ac.cintcm.dataconverge.researcher.domain.Researcher" %> 
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
String imagePath = basePath + "index/";
Subject obj = (Subject)request.getAttribute("subjectObj");
List docList = (List)request.getAttribute("docList");
boolean isAdmin = AuthCheck.isInGroup(request,Constants.SYSTEM_MANAGER);
boolean isOrgLeader = AuthCheck.isInGroup(request,Constants.ORG_LEADER);
boolean fileAuth = false;
if((null != obj && Constants.IS_PUBLIC.equals(obj.getPublicFlag()+""))||isAdmin || isOrgLeader)
		fileAuth = true;
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title><%=Constants.APP_TITLE %>--<%=obj.getSubjectname() %>></title>
    <script language="javascript" src="<%=path %>/index/Scripts/script.js"></script>
	<script language="javascript" src="<%=path %>/js/common.js"></script>
	<link href="<%=path %>/index/Themes/com/style.css" type="text/css" rel="stylesheet"></link>
	<script src='<%=basePath%>dwr/engine.js'></script>
     <script src='<%=basePath%>dwr/util.js'></script> 
     <script src='<%=basePath%>dwr/interface/subject.js'></script>   
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page"> 
  </head>
 <script type="text/javascript">
 var fid = '';
 function download(fileId){
     fid = fileId;
     subject.isdownLoad(fileId,downCallBack);
 }
 function downCallBack(message){
    if(message == '0'){
       openwindow('<%=path %>/document.htm?action=downloadFile&fileId='+fid,'1','1','');
    }else{
       alert("本项目文档不公开，参与人员不能下载项目文档");
    }
 }
 </script>
<body class="idt_body" scroll="yes">
    <table width="100%" border="0" cellpadding="0" cellspacing="0" id="Table5">
        <tr>
            <td class="idt_top_l">
            </td>
            <td class="idt_top_m">
                <!------------------ 标题栏 ------------------>
                <table width="100%" cellpadding="0" cellspacing="0" class="idt_hdr_mg" id="Table10"
                    border="0">
                    <tr>
                        <td class="idt_hdr_l">
                        </td>
                        <td>
                            <table border="0" cellpadding="0" cellspacing="0" class="idt_hdr_f" style="width: 100%;
                                text-align: center">
                                <tr>
                                    <td>
                                        项目信息</td>
                                </tr>
                            </table>
                        </td>
                        <td class="idt_hdr_td_r">
                        </td>
                        <td class="idt_hdr_r" style="width: 75%;">
                            <!------------------ 工具栏 ------------------>
                            <div style="text-align: right">
                                <table class="idt_tb_mg" id="Table3" cellspacing="0" cellpadding="0" width="*" border="0">
                                    <tr class="idt_tb_m">
                                        <td class="idt_tb_i">
                                            <img src="<%=imagePath%>Themes/com/idt_tb_close.gif"></td>
                                        <td class="idt_tb_f">
                                            <a href="javascript:window.close();">&nbsp;关闭&nbsp;</a></td>
                                    </tr>
                                </table>
                            </div>
                        </td>
                    </tr>
                </table>
                <!-----------------END- 标题栏 ------------------>
            </td>
            <td class="idt_top_r">
            </td>
        </tr>
    </table>
    <table cellpadding="0" cellspacing="0" width="100%" height="100%" id="Table8"  border="0">
        <tr>
            <td height="100%" style="padding-top: 3px;">
                <div id="navDiv10">
                    <table width="100%" height="100%" border="0"  cellpadding="0" cellspacing="0" id="Table11">
                        <tr valign="top">
                            <td class="idt_main_m">
                                <table class="idt_tle_mg" cellspacing="0" border="0" cellpadding="0" width="100%">
                                    <tr>
                                        <td class="idt_tle_i">
                                            <img id="imgForm6" src="<%=imagePath%>Themes/com/idt_tle_o.gif"></td>
                                        <td class="idt_tle_f1">
                                            基本信息</td>
                                    </tr>
                                </table>
                                <!--- 内容 --->
                                <div id="tdForm">
                                    <table border="0" cellpadding="0" cellspacing="1" width="100%" class="com_fieldset_tab">
                                    <tr>
                                            <td class="fim_l" width="15%">
                                                专项名称</td>
                                            <td class="fim_r" colspan="3" width="35%">
                                                <%=obj.getExpertname() %></td> 
                                               
                                            <td class="fim_l" width="15%">
                                                填报日期</td>
                                            <td class="fim_r" colspan="3">
                                                <%=Tools.getDateStringByDate(obj.getApplydate())%></td> 
                                        </tr>  
                                        <tr>
                                            <td class="fim_l" width="15%">
                                                所属项目名称</td>
                                            <td class="fim_r" colspan="3" width="35%">
                                                <%=StringUtilTool.NULL2Blank(obj.getSsktmc()) %></td>
                                            <td class="fim_l" width="15%">
                                                所属项目编号</td>
                                                
                                            <td class="fim_r" colspan="3"> 
                                                 <%=StringUtilTool.NULL2Blank(obj.getSsxmbh())%>
                                                 </td>  
                                        </tr> 
                                        
                                        <tr>
                                            <td class="fim_l" width="15%">
                                                项目名称</td>
                                            <td class="fim_r" colspan="3" width="35%">
                                                <%=StringUtilTool.NULL2Blank(obj.getSubjectname()) %></td>
                                            <td class="fim_l" width="15%">
                                                项目编号</td>
                                                
                                            <td class="fim_r" colspan="3"> 
                                                 <%=StringUtilTool.NULL2Blank(obj.getSpecialcode())%>
                                                 </td>  
                                        </tr> 
                                         <tr>
                                            <td class="fim_l" width="15%">
                                                主题</td>
                                            <td class="fim_r" colspan="3"  >
                                            <%=StringUtilTool.NULL2Blank(obj.getTheme())%></td>
                                           <td class="fim_l">
                                               技术标准</td>
                                            <td class="fim_r" colspan="7">
		                                            <%out.print(DictHelper.getInst().selectStrCheck(request.getSession().getServletContext(),"jishubz","width:100%",obj==null?"":obj.getJishubz()+"","6"));%>
                                             </td>  
                                            
                                        </tr> 
                                        <tr>
                                            <td class="fim_l" width="15%">
                                                项目密级</td>
                                            <td class="fim_r" colspan="3" width="35%">
                                         <%out.print(DictHelper.getInst().selectStrName(request.getSession().getServletContext(),obj==null?"":obj.getSubjectmj()+"","7"));%>
                                            
                                           
                                            </td>
                                            <td class="fim_l" width="15%">
                                               申报类型</td>
                                                
                                            <td class="fim_r" colspan="3"> 
		                                            <%out.print(DictHelper.getInst().selectStrName(request.getSession().getServletContext(),obj==null?"":obj.getSblx()+"","14"));%>
                                                 </td>  
                                        </tr> 
                                        <tr>
                                            <td class="fim_l" width="15%">
                                                活动类型</td>
                                            <td class="fim_r" colspan="3" width="35%">
		                                            <%out.print(DictHelper.getInst().selectStrName(request.getSession().getServletContext(),obj==null?"":obj.getActivetype()+"","5"));%>
                                            </td>
                                            <td class="fim_l" width="15%">
                                                创新类型</td>
                                                
                                            <td class="fim_r" colspan="3"> 
		                                            <%out.print(DictHelper.getInst().selectStrName(request.getSession().getServletContext(),obj==null?"":obj.getSubjecttype()+"","2"));%>
                                        </tr>  
                                        <tr>
                                            
                                            
                                             
                                               <td class="fim_l">
                                                预期成果</td>
                                            <td class="fim_r" colspan="7">
                                         	<%out.print(DictHelper.getInst().selectStrCheck(request.getSession().getServletContext(),"planchengglx","width:100%",obj==null?"":obj.getPlanchengglx()+"","8"));%>

                                                </td>
                                        </tr> 
                                         <tr>
                                            <td class="fim_l">
                                                起始日期</td>
                                            <td class="fim_r" colspan="3">
                                                <%=Tools.getDateStringByDate(obj.getStartdate())%></td>
                                             <td class="fim_l">
                                               结束日期</td>
                                            <td class="fim_r" colspan="3">
                                                <%=Tools.getDateStringByDate(obj.getEnddate())%></td>
                                           
                                        </tr> 
                                         
                                        <tr>
                                            <td class="fim_l">
                                                参加单位数</td>
                                            <td class="fim_r" colspan="3">
                                                 <%=StringUtilTool.NULL2Blank(obj.getCjdws() )%></td>
                                             <td class="fim_l">
                                               项目参加人数</td>
                                            <td class="fim_r" colspan="3">
                                               <%=StringUtilTool.NULL2Blank(obj.getChujrs())%>
                                             </td>  
                                        </tr> 
                                         <tr>
                                            <td class="fim_l">
                                                高级人数</td>
                                            <td class="fim_r" colspan="3">
                                                <%=StringUtilTool.NULL2Blank(obj.getGaojrs())%></td>
                                             <td class="fim_l">
                                               中级人数</td>
                                            <td class="fim_r" colspan="3">
                                               <%=StringUtilTool.NULL2Blank(obj.getZhongjrs())%>
                                             </td>  
                                        </tr> 
                                        <tr>
                                            <td class="fim_l">
                                                初级人数</td>
                                            <td class="fim_r" colspan="3">
                                                <%=StringUtilTool.NULL2Blank(obj.getChujrs())%></td>
                                             <td class="fim_l">
                                               其他职称人数</td>
                                            <td class="fim_r" colspan="3">
                                               <%=StringUtilTool.NULL2Blank(obj.getQitzcrs())%>
                                             </td>  
                                        </tr> 
                                        <tr>
                                            <td class="fim_l">
                                                博士人数</td>
                                            <td class="fim_r" colspan="3">
                                            <%=StringUtilTool.NULL2Blank(obj.getBoshirs())%>
                                               </td>
                                             <td class="fim_l">
                                               硕士人数</td>
                                            <td class="fim_r" colspan="3">
                                              <%=StringUtilTool.NULL2Blank(obj.getShuosrs())%>
                                             </td>  
                                        </tr> 
                                        <tr>
                                            <td class="fim_l">
                                                学士人数</td>
                                            <td class="fim_r" colspan="3">
                                                <%=StringUtilTool.NULL2Blank(obj.getXuesrs())%></td>
                                             <td class="fim_l">
                                               其他学位人数</td>
                                            <td class="fim_r" colspan="3">
                                               <%=StringUtilTool.NULL2Blank(obj.getQitxwrs())%>
                                             </td>  
                                        </tr> 
                                         <tr>
                                            <td class="fim_l">
                                                人员总数</td>
                                            <td class="fim_r" colspan="3">
                                                <%=StringUtilTool.NULL2Blank(obj.getAllperson())%></td>
                                             <td class="fim_l">
                                              国外发明数</td>
                                            <td class="fim_r" colspan="3">
                                              <%=StringUtilTool.NULL2Blank(obj.getGuowaifm())%>
                                             </td>  
                                        </tr> 
                                        <tr>
                                            <td class="fim_l">
                                                国内发明数</td>
                                            <td class="fim_r" colspan="3">
                                                 <%=StringUtilTool.NULL2Blank(obj.getGuoneifm())%></td>
                                             <td class="fim_l">
                                              其他发明数</td>
                                            <td class="fim_r" colspan="3">
                                               <%=StringUtilTool.NULL2Blank(obj.getQitafm())%>
                                             </td>  
                                        </tr> 
                                        <tr>
                                            <td class="fim_l">
                                                组长电话</td>
                                            <td class="fim_r" colspan="3">
                                                 <%=StringUtilTool.NULL2Blank(obj.getZuzdh())%></td>
                                               <td class="fim_l">
                                               项目状态</td>
                                            <td class="fim_r" colspan="3">
                                              <%=Constants.getSubjectStatus(obj.getState()) %>
                                             </td>  
                                        </tr> 
                                       
                                        <tr> 
                                                 <td class="fim_l">
                                                项目研究内容</td>
                                            <td class="fim_r" colspan="7">
                                               <%=StringUtilTool.NULL2Blank(obj.getAbstractContent()) %></td>
                                               
                                                
                                        </tr> 
                                        <tr> 
                                                 <td class="fim_l">
                                                协议其他条款</td>
                                            <td class="fim_r" colspan="7">
                                               <%=StringUtilTool.NULL2Blank(obj.getStudy())%> 
                                        </tr> 
                                        <tr> 
                                                 <td class="fim_l">
                                                审核意见</td>
                                            <td class="fim_r" colspan="7">
                                               <%=StringUtilTool.NULL2Blank(obj.getShenheyj())%> 
                                               </td>
                                               
                                                
                                        </tr> 
                                    </table>
                                    <table cellspacing="0" cellpadding="0" width="100%" class="idt_bottom_mg" border="0">
                                        <tr>
                                            <td align="right">&quot; 
                                            </td>
                                        </tr>
                                    </table>
                                </div>
                               
                                <!--- 标题 ---->
                                <table class="idt_tle_mg" cellspacing="0" cellpadding="0" width="100%">
                                    <tr>
                                        <td class="idt_tle_i">
                                            <img id="img1" src="<%=imagePath%>Themes/com/idt_tle_o.gif"></td>
                                        <td class="idt_tle_f1">单位信息</td>
                                    </tr>
                                </table>
                                <!--- 内容 --->
                                <table cellpadding="0" cellspacing="0" border="0" width="100%">
                                    <tr>
                                        <td>
                                            <div class="content">
                                                <table width="*" cellpadding="0" cellspacing="1" class="dg_borderstyle" id="Table4">
                                                    <tr>
                                                        <td class="dg_headerstyle" width="5%" >
                                                            序号</td>
                                                        <td class="dg_headerstyle">
                                                            单位名称</td>
                                                        <td class="dg_headerstyle">
                                                            单位角色</td> 
                                                    </tr>
                                                     <%  Set unitSet = obj.getSubOrg();  
                                                        if(unitSet != null && unitSet.size()>0){  
                                                   			Iterator iterUnit = unitSet.iterator();
                                                   			int i = 0;
                                                   			while(iterUnit.hasNext()){
                                                   				
                                                   				SubOrg org = (SubOrg)iterUnit.next();
                                                   				if(null == org.getOrg()){
                                                   					continue;
                                              	
                                                   				}
                                                   				i++;
                                                    
                                                     %>
                                                    <tr class="dg_alternatingitemstyle">
                                                        <td align="center">
                                                            <%=i %></td>
                                                        <td>
                                                           <%=org.getOrg()==null?"":org.getOrg().getName() %>
                                                        </td>
                                                        <td>
                                                           <%
								                                if(Constants.org_role_leader.equals(org.getOrgRole()))
								                                	out.print("责任单位");
								                                if(Constants.org_role_participant.equals(org.getOrgRole()))
								                                	out.print("联合单位");
	                                
	                                						%>
                                                            
                                                        </td> 
                                                    </tr>
                                                    <%}}else{ %>
                                                    <tr class="dg_alternatingitemstyle">
                                                        <td align="center" colspan="3">
                                                        <font color=red>该项目当前没有单位信息</font> 
                                                         </td>  
                                                    </tr>
                                                    <%} %>
                                                </table>
                                                
                                            </div>
                                        </td>
                                    </tr>
                                </table>
                                <!--- 标题 ---->
                                <table class="idt_tle_mg" cellspacing="0" cellpadding="0" width="100%">
                                    <tr>
                                        <td class="idt_tle_i">
                                            <img id="img1" src="<%=imagePath%>Themes/com/idt_tle_o.gif"></td>
                                        <td class="idt_tle_f1">人员信息</td>
                                    </tr>
                                </table>
                                <!--- 内容 --->
                                <table cellpadding="0" cellspacing="0" border="0" width="100%">
                                    <tr>
                                        <td>
                                            <div class="content">
                                                <table width="*" cellpadding="0" cellspacing="1" class="dg_borderstyle" id="Table4">
                                                    <tr>
                                                        <td class="dg_headerstyle" width="5%">
                                                            序号</td>
                                                        <td class="dg_headerstyle">
                                                            姓名</td>
                                                        <td class="dg_headerstyle">
                                                            职称</td>
                                                        <td class="dg_headerstyle">
                                                            单位</td>
                                                        <td class="dg_headerstyle">
                                                            部门</td>
                                                        <td class="dg_headerstyle">
                                                            项目角色</td>
                                                    </tr>
                                                     <%  Set personSet = obj.getSubRes();  
                                                         if(personSet != null && personSet.size()>0){  
                                                   			Iterator iterPerson = personSet.iterator();
                                                   			int i = 0;
                                                   			while(iterPerson.hasNext()){
                                                   				
                                                   				SubRes person = (SubRes)iterPerson.next();
                                                   				if(null == person)
                                                   					continue;
                                                   				i++;
                                                   				
                                                    
                                                     %>
                                                    <tr class="dg_alternatingitemstyle">
                                                        <td align="center">
                                                           <%=i%></td>
                                                        <td>
                                                        
                                                            <%
                                                            	 if(person.getRes()!=null)
                                                            	
                                                            	out.print(person.getRes().getName()); %>
                                                        </td>
                                                        <td>
                                                            <%
	                                                                if(null != person.getRes()){
	                                                                	Researcher res = person.getRes();
	                                                                	if("1".equals(res.getZhicheng()))
	                                                                		 out.println("正高");
	                                                                	if("2".equals(res.getZhicheng()))
	                                                                		 out.println("副高");
	                                                                	if("3".equals(res.getZhicheng()))
	                                                                		 out.println("中级");
	                                                                	if("4".equals(res.getZhicheng()))
	                                                                		 out.println("初级");
	                                                                	if("5".equals(res.getZhicheng()))
	                                                                		 out.println("其它"); 
	                                                                }
                                                            
                                                            
                                                            %>
                                                        </td>
                                                        <td>
                                                            <%
                                                            if(person.getRes()!=null && person.getRes().getOrg()!=null)
                                                            
                                                           	out.println(person.getRes().getOrg().getName());
                                                           %>
                                                        </td>
                                                        <td>
                                                           <%
                                                           if(person.getRes()!=null && person.getRes().getDepartment()!=null)
                                                              out.println(person.getRes().getDepartment().getName());
                                                           %>
                                                        </td>
                                                        <td align="center">
                                                        <%
						                                  if(Constants.researcher_role_chargeman.equals(person.getResRole()+"")){
						                                  		out.println("负责人");
						                                  }
						                                   if(Constants.researcher_role_participant.equals(person.getResRole()+"")){
						                                  		out.println("参与人员");
						                                  }  %>
                                                             
                                                        </td>
                                                    </tr>
                                                    <%}}else{ %>
                                                    <tr class="dg_alternatingitemstyle">
                                                        <td align="center" colspan="6">
                                                        <font color=red>该项目当前没有人员信息</font>
                                                         </td> 
                                                    </tr>
                                                    <%} %>
                                                </table>
                                                
                                            </div>
                                        </td>
                                    </tr>
                                </table>
                                   <!--- 标题 ---->
                                <table class="idt_tle_mg" cellspacing="0" cellpadding="0" width="100%">
                                    <tr>
                                        <td class="idt_tle_i">
                                            <img id="img1" src="<%=imagePath%>Themes/com/idt_tle_o.gif"></td>
                                        <td class="idt_tle_f1">年度计划</td>
                                    </tr>
                                </table>
                                <!--- 内容 --->
                                <table cellpadding="0" cellspacing="0" border="0" width="100%">
                                    <tr>
                                        <td>
                                            <div class="content">
                                                <table width="*" cellpadding="0" cellspacing="1" class="dg_borderstyle" id="Table4">
                                                    <tr>
                                                     <td class="dg_headerstyle"  >
						                             	序号</td>
                                                      <td class="dg_headerstyle" >
						                             	年度</td>
						                            <td class="dg_headerstyle" >
						                                 年度任务</td>
						                            <td class="dg_headerstyle">
						                                年度考核指标</td> 
						                            <td class="dg_headerstyle">
						                                任务时间节点</td>  
                                                    </tr>
                                                    <%if(obj!= null && obj.getPlans() != null &&obj.getPlans().size()!=0){
						                        		Set set = obj.getPlans();
						                        		Iterator it = set.iterator();
						                        		int i = 0;
						                        		while(it.hasNext()){
						                        			ResmanYearplan doc = (ResmanYearplan)it.next();
						                        			i++; 
						                         %>
						                        <tr class="dg_alternatingitemstyle">
						                            <td align="center"><%=i %></td>
						                            <td width="8%">
						                                <%=doc.getYearstr() %>   
						                            </td>
						                            <td align="left" width="25%">
						                                <%=doc.getYeartask() %>
						                            </td>
						                            <td align="left" >
						                                <%=doc.getYeartarget()%>
						                            </td>
						                            <td align="center" width="8%">
						                                 <%=doc.getTargetdate()%>
						                            </td> 
						                             
						                        </tr> 
                                                    <%}}else{ %>
                                                    <tr class="dg_alternatingitemstyle">
                                                        <td align="center" colspan="5">
                                                        <font color=red>该项目当前没有相关年度计划</font> 
                                                         </td>  
                                                    </tr>
                                                    <%} %>
                                                </table>
                                                
                                            </div>
                                        </td>
                                    </tr>
                                </table>
                                   <!--- 标题 ---->
                                <table class="idt_tle_mg" cellspacing="0" cellpadding="0" width="100%">
                                    <tr>
                                        <td class="idt_tle_i">
                                            <img id="img1" src="<%=imagePath%>Themes/com/idt_tle_o.gif"></td>
                                        <td class="idt_tle_f1">任务分管</td>
                                    </tr>
                                </table>
                                <!--- 内容 --->
                                <table cellpadding="0" cellspacing="0" border="0" width="100%">
                                    <tr>
                                        <td>
                                            <div class="content">
                                                <table width="*" cellpadding="0" cellspacing="1" class="dg_borderstyle" id="Table4">
                                                    <tr>
                                                       <td class="dg_headerstyle" width="5%">
						                               	序号</td>
						                            <td class="dg_headerstyle"  >
						                             	任务名称</td>
						                            <td class="dg_headerstyle" >
						                                 承担单位</td>
						                            <td class="dg_headerstyle">
						                                目标</td> 
						                            <td class="dg_headerstyle">
						                                研究内容</td>
						                                 <td class="dg_headerstyle">
						                                考核指标</td>
						                              <td class="dg_headerstyle">
						                                任务时间点</td>
						                              <td class="dg_headerstyle">
						                                任务负责人</td>
						                               <td class="dg_headerstyle">
						                                国拨经费</td>
                                                    </tr>
			                          <%if(obj!= null && obj.getTasks() != null &&obj.getTasks().size()!=0){
			                        		Set set = obj.getTasks();
			                        		Iterator it = set.iterator();
			                        		int i = 0;
			                        		while(it.hasNext()){
			                        			ResmanTaskassign doc = (ResmanTaskassign)it.next();
			                        			i++; 
			                           %>
                        <tr class="dg_alternatingitemstyle">
                            <td align="center"><%=i %></td>
                            <td>
                                <%=doc.getTaskname() %>   
                            </td>
                            <td align="center" width="20%">
                                <%=doc.getTaskunit() %>
                            </td>
                            <td align="center">
                                <%=doc.getTarget() %>
                            </td>
                            <td align="center">
                                 <%=doc.getTargetcontent() %>
                            </td>
                            <td align="center">
                                 <%=doc.getCheckgoal() %>
                            </td>
                            <td align="center">
                                 <%=doc.getTaskdate() %>
                            </td>
                            <td align="center">
                                 <%=doc.getTaskuser() %>
                            </td>
                             <td align="center">
                                 <%=doc.getContrymoney() %>
                            </td>
                             
                        </tr> 
                                                    <%}}else{ %>
                                                    <tr class="dg_alternatingitemstyle">
                                                        <td align="center" colspan="9">
                                                        <font color=red>该项目当前没有相关任务分管</font> 
                                                         </td>  
                                                    </tr>
                                                    <%} %>
                                                </table>
                                                
                                            </div>
                                        </td>
                                    </tr>
                                </table>
                                 <!--- 标题 ---->
                                <table class="idt_tle_mg" cellspacing="0" cellpadding="0" width="100%">
                                    <tr>
                                        <td class="idt_tle_i">
                                            <img id="img1" src="<%=imagePath%>Themes/com/idt_tle_o.gif"></td>
                                        <td class="idt_tle_f1">相关文档</td>
                                    </tr>
                                </table>
                                <!--- 内容 --->
                                <table cellpadding="0" cellspacing="0" border="0" width="100%">
                                    <tr>
                                        <td>
                                            <div class="content">
                                                <table width="*" cellpadding="0" cellspacing="1" class="dg_borderstyle" id="Table4">
                                                    <tr>
                                                        <td class="dg_headerstyle">
                                                            序号</td>
                                                             <td class="dg_headerstyle">
                                                            文档类型</td>
                                                        <td class="dg_headerstyle">
                                                            文档名称</td>
                                                       
                                                        <td class="dg_headerstyle">
                                                            上传时间</td>
                                                        <td class="dg_headerstyle">
                                                            上传人</td>
                                                        <td class="dg_headerstyle">
                                                            下载</td>
                                                    </tr>
                                                    <%   
                                                        if(docList != null && docList.size()>0){  
                                                   			Iterator iterAcc = docList.iterator();
                                                   			int i = 0;
                                                   			while(iterAcc.hasNext()){
                                                   				i++;
                                                   				Map rd = (Map)iterAcc.next();
                                                    
                                                     %>
                                                    <tr class="dg_alternatingitemstyle">
                                                        <td align="center" width="5%">
                                                            <%=i %></td>
                                                             <td align="center">
                                                             <%=rd.get("FILETYPE")==null?"":rd.get("FILETYPE")%>
                                                        </td>
                                                        <td>
                                                        <%if(fileAuth){ %>
                                                            <a href="<%=path %>/document.htm?action=downloadFile&fileId=<%=rd.get("ID")%>"><%= rd.get("FILENAME")%></a>
                                                            <%}else{ %>
                                                            <%= rd.get("FILENAME")%>
                                                            <%} %>
                                                        </td>
                                                       
                                                        <td align="center">
                                                             <%=Tools.getDateStringByDate((Date)rd.get("UPLOADDATE"))%>
                                                        </td>
                                                        <td>
                                                             <%= rd.get("UPLOADUSER")==null?"":rd.get("UPLOADUSER")%>
                                                        </td>
                                                        <td align="center">
                                                            <%if(fileAuth){ %> <a href="<%=path %>/document.htm?action=downloadFile&fileId=<%=rd.get("ID")%>">下载</a>
                                                            <%}else{ %>
                                                                          <a href="javaScript:download('<%=rd.get("ID")%>');">下载</a>
                                                            <%} %>
                                                        </td>
                                                    </tr>
                                                    <%}}else{ %>
                                                    <tr class="dg_alternatingitemstyle">
                                                        <td align="center" colspan="6">
                                                        <font color=red>该项目当前没有相关文档</font> 
                                                         </td>  
                                                    </tr>
                                                    <%} %>
                                                </table>
                                                
                                            </div>
                                        </td>
                                    </tr>
                                </table>
                                <!--- 标题 ---->
                                <table class="idt_tle_mg" cellspacing="0" cellpadding="0" width="100%">
                                    <tr>
                                        <td class="idt_tle_i">
                                            <img id="img1" src="<%=imagePath%>Themes/com/idt_tle_o.gif"></td>
                                        <td class="idt_tle_f1">经费信息</td>
                                    </tr>
                                </table>
                                <!--- 内容 --->
                                <table cellpadding="0" cellspacing="0" border="0" width="100%">
                                    <tr>
                                        <td>
                                            <div class="content">
                                               <table width="*" cellpadding="0" cellspacing="1" class="dg_borderstyle" id="Table4">
                        <tr>
                            <td class="dg_headerstyle" width="5%">
                               	序号</td>
                            <td class="dg_headerstyle" >
                             	经费类型</td>
                            <td class="dg_headerstyle" >
                                 经费名称</td>
                                  <td class="dg_headerstyle" >
                                 中央经费</td>
                                  <td class="dg_headerstyle" >
                                 地方经费</td>
                                  <td class="dg_headerstyle" >
                                 企业经费</td>
                                  <td class="dg_headerstyle" >
                                 银行经费</td>
                                   <td class="dg_headerstyle" >
                                 其他经费</td>
                                  <td class="dg_headerstyle" >
                                 经费合计</td> 
                            
                        </tr>
                        <%if(obj!= null && obj.getFunds() != null &&obj.getFunds().size()!=0){
                        		Set set = obj.getFunds();
                        		Iterator it = set.iterator();
                        		int i = 0;
                        		Double count=0d;
                        		while(it.hasNext()){
                        			SubjectFund doc = (SubjectFund)it.next(); 
                        			i++; 
                         %>
                        <tr class="dg_alternatingitemstyle">
                            <td align="center"><%=i %></td>
                            <td align="center" width="5%">
                               <%=doc.getJftype()==null?"":doc.getJftype() %>
                                 
                            </td>
                            <td align="center"  width="15%">
                               <%=doc.getJfmc()==null?"":doc.getJfmc() %>
                                 
                            </td>
                            <td align="center"  width="8%">
                               <%=doc.getJfZy()==null?"0":doc.getJfZy() %>
                                 
                            </td>
                            <td align="center"  width="8%">
                               <%=doc.getJfDf()==null?"0":doc.getJfDf() %>
                                 
                            </td>
                            <td align="center"  width="8%">
                               <%=doc.getJfQy()==null?"0":doc.getJfQy() %>
                                 
                            </td>
                            <td align="center"  width="8%">
                               <%=doc.getJfYh()==null?"0":doc.getJfYh() %>
                                 
                            </td>
                            <td align="center"  width="8%">
                               <%=doc.getJfQt()==null?"0":doc.getJfQt() %>
                                 
                            </td>
                             <td align="center" width="8%" >
                               <%=doc.getJfHj()==null?"0":doc.getJfHj() %>
                                 
                            </td>
                             
                        </tr> 
                        <%}%>
                         
                        
                        <% }else{ %>
                         <tr class="dg_alternatingitemstyle">
                            <td colspan=10 align="center"><font color=red>该项目当前没有相关经费信息</font></td>
                        </tr>  
                        <%} %>
                    </table>  
                                                
                                            </div>
                                        </td>
                                    </tr>
                                </table> 
                            </td>
                        </tr>
                    </table>
                </div> 
            </td>
        </tr>
    </table> 
</body>
</html>

